package com.kinyx.framework.db.entities;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;

import com.kinyx.framework.db.annotation.Comment;
import com.kinyx.framework.db.annotation.Order;
import com.kinyx.framework.enums.impl.UsingStatus;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@MappedSuperclass
public class MappedSuperclassNormal extends MappedSuperclassID implements I_USING_STATUS {

	@Enumerated(EnumType.STRING)
	@Column(nullable = false, length = 12)
	@Comment("在用状态（枚举）")
	@Order(10000)
	@NotNull
	private UsingStatus usingStatus;

}
